win32: Rename a shadowing variable
authorBenjamin Otte <otte@redhat.com>
Tue, 21 May 2019 05:15:16 +0000 (07:15 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 21 May 2019 05:23:30 +0000 (07:23 +0200)
gtk/gtkmain.c

index 22513d95c3228341045286ae08ce9dde0957cb5d..4dce1cd7e77388f4b85cb09db2709b873f378796 100644 (file)
@@ -419,7 +419,6 @@ enum_locale_proc (LPTSTR locale)
             SUBLANGID (LANGIDFROMLCID (lcid)) == SUBLANG_DEFAULT)))
         {
           char language[100], country[100];
-          char locale[300];
 
           if (script_to_check != NULL)
             {
@@ -467,11 +466,13 @@ enum_locale_proc (LPTSTR locale)
           if (GetLocaleInfo (lcid, LOCALE_SENGLANGUAGE, language, sizeof (language)) &&
               GetLocaleInfo (lcid, LOCALE_SENGCOUNTRY, country, sizeof (country)))
             {
-              strcpy (locale, language);
-              strcat (locale, "_");
-              strcat (locale, country);
+              char str[300];
 
-              if (setlocale (LC_ALL, locale) != NULL)
+              strcpy (str, language);
+              strcat (str, "_");
+              strcat (str, country);
+
+              if (setlocale (LC_ALL, str) != NULL)
                 setlocale_called = TRUE;
             }